<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>游戏模型</title>
	<script src="jquery-3.4.1.min.js"></script>
<style type="text/css">
	img{
		width: 50px;
		height: 50px;
	}

	#ren{
		position: absolute;
		left:10px;
		top:20px;
	}


</style>
</head>
<body>
	
<img src="images/ren.jpg" alt="" id="ren">


<script type="text/javascript">

	var ren = document.getElementById('ren')


	function qh(){
		console.log(ren.src)
	}

	function run(){

	}

	timer = setInterval(function(){
		qh()
		run()
	},33)



	document.body.onkeydown = function(e){
		var event = e || window.event
		console.log(event.keyCode)
		// 左37，上38，右39，下40，空格32，回车13，w87，x88
	}



</script>


</body>
</html>